package com.qiantu.phone.utils;

import android.content.Context;

import androidx.recyclerview.widget.LinearSmoothScroller;

/**
 * @Package: com.luzx.base.utils
 * @ClassName: TopSmoothScroller
 * @Description: 描述
 * @Author: luzx
 * @CreateDate: 2020/10/14 22:29
 * @UpdateUser: luzx
 * @UpdateDate: 2020/10/14 22:29
 * @UpdateRemark: 更新说明
 */
public class TopSmoothScroller extends LinearSmoothScroller {
    public TopSmoothScroller(Context context) {
        super(context);
    }

    @Override
    protected int getHorizontalSnapPreference() {
        return SNAP_TO_START;//具体见源码注释
    }

    @Override
    protected int getVerticalSnapPreference() {
        return SNAP_TO_START;//具体见源码注释
    }

}